<%@page import="java.util.List"%>
<%@page import="modulo1.cdp.Curso"%>
<%@page import="modulo1.cdp.EnumArea"%>
<%@page import="modulo1.cdp.EnumTipo"%>
<div class="table" style="border-top:2px solid #f70;">
  <br />
  <form method="get" id="evento" action="Turma">
    <input type="hidden" name="evento" value="inserir" />
    <a id="salvar" class="button" style="cursor: pointer;">Continuar</a>
    <a class="button" style="cursor: pointer;" onclick="history.back(-1)">Cancelar</a><br />
    <table class="listing form" cellpadding="0" cellspacing="0">
      <tr>
	<th class="full" colspan="2">Turma</th>
      </tr>
      <tr>
	<td class="first" width="172"><strong>Curso</strong></td>
	<td class="last">
	  <select name="curso">
	    <%
	      List<Curso> listaCursos = (List<Curso>) request.getAttribute("listaCursos");
	      for (int i = 0; i < listaCursos.size(); i++) {
		out.print("<option value=\"" + listaCursos.get(i).getId() + "\">" + listaCursos.get(i).getNome() + "</option>");
	      }
	    %>
	  </select>
	</td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </form>
</div>
<script>
$("#salvar").click(function(){
    $("#evento").submit();
});
</script>